<template>
  <el-input style="width: 240px" v-model="content" placeholder="Please input" @change="pub" />
</template>

<script setup>
import useTodoListStore from '../store/module/TodoList';
import { ref } from 'vue'
const content = ref('')

const todoListStore = useTodoListStore()
const { sent } = todoListStore

const pub = () => {
  sent(content.value)
  content.value = ''
}

</script>